<?php

class AuthRule{
    
    const RULE_URL = 1;
    const RULE_MAIN = 2;


    public  function getAllRules()
    {
    	return db('auth_rule')->where(['status'=>1])->field('id,name,title,pid,type,module,code')->select();
    }




}
